//
//  BaseModel.m
//  work
//
//  Created by 徐宏飞 on 16/5/19.
//  Copyright © 2016年 方伟. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel


//对象方法
-(instancetype)initWithDictionary:(NSDictionary *)dictionary{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

//类方法
+ (instancetype)modelWithDictionary:(NSDictionary *)dictionary{
    return [[self alloc] initWithDictionary:dictionary];
}


-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    
}


@end
